package show.marvelous.domain.chessgame.constans;

import show.marvelous.domain.chessgame.aggregate.entity.DiceRecord;

/**
 * The enum Take off strategy enum.
 * @author Kris  2021/9/15
 */
public enum TakeOffStrategyEnum{
    /**
     *Six take off strategy enum.
     */
    SIX{
        @Override
        public boolean canTakeOff(int step){
            return DiceRecord.MAX_STEP.equals(step);
        }
    },
    /**
     *One or six take off strategy enum.
     */
    ONE_OR_SIX{
        @Override
        public boolean canTakeOff(int step){
            return DiceRecord.MAX_STEP.equals(step) || DiceRecord.MIN_STEP.equals(step);
        }
    };

    public abstract boolean canTakeOff(int step);
}
